package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreEntyLanguagesPK implements Serializable {
    public Long entityId;
    public Long entityLanguageId;
    public Long entityVersionNum;

    public RimCoreEntyLanguagesPK() {
    }

    public RimCoreEntyLanguagesPK(Long entityId, Long entityLanguageId, Long entityVersionNum) {this.entityId = entityId;
        this.entityLanguageId = entityLanguageId;
        this.entityVersionNum = entityVersionNum;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreEntyLanguagesPK) {
            final RimCoreEntyLanguagesPK otherRimCoreEntyLanguagesPK = (RimCoreEntyLanguagesPK) other;
            final boolean areEqual = 
                (otherRimCoreEntyLanguagesPK.entityId.equals(entityId) && otherRimCoreEntyLanguagesPK.entityLanguageId.equals(entityLanguageId) && otherRimCoreEntyLanguagesPK.entityVersionNum.equals(entityVersionNum));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
